var tddjs = this.tddjs || {};

if (!Function.prototype.bind) {
    // Simple, but not the most performant solution
    Function.prototype.bind = function (obj) {
        var args = Array.prototype.slice.call(arguments, 1);
        var fun = this;

        return function () {
            return fun.apply(obj, args.concat(Array.prototype.slice.call(arguments)));
        };
    };
}
